body {
    margin: 0;
    padding: 0;
}

html {
    font-size: 1.6rem;
}

.box {
    width: 100%;
    height: 100%;
    background-color: #f3f4f8;
}

.bottom-box {
    position: fixed;
    width: 100vw;
    height: 5%;
    display: flex;
    justify-content: space-around;
    bottom: 0rem;
}

.bottom-box textarea {
    height: 80%;
    border-radius: 0.5rem;
    border: 1px solid black;
    resize: none;
    margin-top: 0.1rem;
}

textarea:focus {
    outline: none;
    border: 0.05rem solid #198754;
}

.bottom-box button {
    border-radius: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    border: 0.1rem solid #ccc;
    background-color: #198754;
    color: #fff;
    position: absolute;
    right: 4rem;
    bottom: 2rem;
}

.text-count {
    color: #198754;
    position: absolute;
    bottom: 0rem;
    right: 12rem;
}

.body-box {
    width: 100%;
    height: calc(100vh - 1rem);
    overflow-y: scroll;
    background-color: #fff;
    margin: 0rem 0rem;
}

.body-box::-webkit-scrollbar {
    width: 0.3rem;
}

.body-box::-webkit-scrollbar-thumb {
    border-radius: 1rem;
}

.body-box::-webkit-scrollbar-track {
    background-color: #fff;
}

.body-box .right {
    display: flex;
}

.user {
    display: flex;
    justify-content: flex-end;
}

.robot {
    display: flex;
    justify-content: flex-start;
}

.chat_img {
    display: block;
    background-color: #843c3c;
    width: 1rem !important;
    height: 1rem !important;
    border-radius: 50%;
    object-fit: cover;
}

.user .right div {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.body-box > div:first-child .user .right:first-child {
    margin-top: 1rem;
}

.right div:nth-child(2) {
    width: 90%;
}

.right {
    display: flex;
    margin-left: 0.2rem;

}

.user .right {
    flex-direction: row-reverse;
}

.user span {
    text-align: right;
}

.text-box {
    background-color: #198754;
    color: #fff;
    padding: 0.3rem;
    border-radius: 0.3rem;
    word-wrap: break-word;
    max-width: 90%;
}

.right span {
    display: block;
    font-size: 0.3rem;
    color: #ccc;
    margin-left: 0.5rem;
}

.user .right span {
    margin-right: 0.5rem;
}

.icons {
    font-size: 0.7rem;
    margin-top: 0.1rem;
}

.fu {
    padding: 0.4rem 1rem;

} 
.demo-floating-box-bubble {
    position: fixed;
    right: 0.2rem;
    bottom: 2rem; /* 调整悬浮球的位置，避免遮挡输入框 */
    z-index: 1000; /* 确保悬浮球在最上层 */
  }
  
  .main-button {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #007bff;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .chat-chat{
    width:0.3rem;
    height:0.3rem;
  }   
